<template>
  <div>
    定义子组件
  </div>
</template>
<script>
//解构
import { defineComponent,ref } from 'vue'
import {useStore} from "vuex"
import {useRoute,useRouter} from "vue-router"
//模块化
export default defineComponent({
  name:'',//组件名称
  props:{
    //接收父组件数据
  },
  components:{
    //定义子组件
  },
  setup(prop, content){
    //  这里没有this,直接使用props里数据
    const store = useStore()
    const route = useRoute()
    const router = useRouter()

    return {

    }
  }
})
</script>
<style scoped>

</style>
